<template>
  <v-chart :option="option" autoresize :loading="load" class="pack"/>
</template>

<script>
import {ref, defineComponent} from "vue";

export default defineComponent({
  //散点图
  name: "BaseScatterPlot",
  data(){
    let load = false
    let option = {
      xAxis: {
        data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
      },
      yAxis: {},
      series: [
        {
          type: 'scatter',
          data: [220, 182, 191, 234, 290, 330, 310]
        }
      ]
    };
    return{
      load: ref(load),
      option: ref(option)
    }
  }

})
</script>

<style scoped>

</style>